# -*- coding:utf-8 -*- 
from google.appengine.ext import db
class entry(db.Model):
        name            =db.TextProperty(default="some test")
        title           =db.TextProperty(default="some test")
        #photo_descrip   =db.TextProperty()
        #photo_url       =db.StringProperty(default=r"http://s-album.appspot.com/img/88f5db500777fad5cc4770da32c0657f")
        pub_data        =db.DateTimeProperty(auto_now_add=True)
        tag             =db.StringProperty(default=u"other")
        catalog         =db.StringProperty(default=u"nocatalog")
        name_group      =db.StringProperty()
        id_group        =db.IntegerProperty()
        
class photo_group(db.Model):
        photo_entry     = db.ReferenceProperty(entry,
                                   collection_name='photos')
        photo_descrip   =db.TextProperty()
        photo_url       =db.StringProperty(default=r"http://s-album.appspot.com/img/88f5db500777fad5cc4770da32c0657f")
        pub_data        =db.DateTimeProperty(auto_now_add=True)
        
